<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	
	<?php
		Yii::app()->clientScript->registerScriptFile(
			Yii::app()->baseUrl.'/js/admin.js'
		);
	?>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo">
			<?php echo CHtml::link('<img src="/images/logo_bottom.png"></img>',$this->createUrl('/main/index')); ?>
		</div>
	</div><!-- header -->

	<div id="mainmenu">
		<?php 
		
		$this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Товари...', 'url'=>array('/admin/main_items_catalog/index')),
				array('label'=>'Сторінки', 'url'=>array($this->createUrl('/admin/pages/admin'))),
				array('label'=>'Новини', 'url'=>array($this->createUrl('/admin/news/admin'))),
				array('label'=>'Запитання відповіді', 'url'=>array($this->createUrl('/admin/voprosOtvet/admin'))),
				array('label'=>'Меню', 'url'=>array($this->createUrl('/admin/menu/admin'))),
				array('label'=>'Прайс', 'url'=>array($this->createUrl('/admin/price/index'))),
				array('label'=>'Фото слафдера', 'url'=>array($this->createUrl('/admin/sliderPhoto/admin'))),
				array('label'=>'Настройки', 'url'=>array($this->createUrl('/admin/setting/view'))),
				array('label'=>'Вихід ('.Yii::app()->user->name.')', 'url'=>array('/users/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->
	<div style="padding: 15px;">
	<div class="span-5 last">
	<div id="sidebar">
	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'Операції',
		));
		
		$this->widget('zii.widgets.CMenu', array(
			'items'=>$this->menu,
			'htmlOptions'=>array('class'=>'operations'),
		));
		$this->endWidget();
	?>
	</div>
	</div>
	<br>
<div class="clear"></div>

	<?php echo $content; ?>
</div>
	<div class="clear"></div>

	<div id="footer">
		Dimon © Company ))))).
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
